package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

import java.util.List;
import java.util.Set;

public interface PermissionDao {
    //根据角色id查询权限信息
    Set<Permission> findPermissionByRoleId(Integer roleId);


    Page<Permission> findByCondition(String queryString);

    void add(Permission permission);

    Permission findById(Integer id);

    void edit(Permission permission);

    long findroleByPermissionId(Integer id);

    void deleteById(Integer id);

    List<Permission> findAll();
}
